/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2021-09-02     RT-Thread    first version
 */

#include <rtthread.h>
#include "test\threadCtrl.h"

#define DBG_TAG "main"
#define DBG_LVL DBG_LOG
#include <rtdbg.h>

/**
 * @brief main function, but not the entrance of thread. Thread entry in the program had macro definition: INIT_APP_EXPORT
 * （主函数，但不作为各线程入口，各线程入口在进行了宏定义：INIT_APP_EXPORT的程序中）
 * @param  void
 * @return always RT_EOK
 */
int main(void)
{
    int count = 1;
    ThreadCtrl::getInstance();

    while (count++)
    {
        //        LOG_D("Hello RT-Thread!");
        rt_thread_mdelay(1000);
    }

    return RT_EOK;
}
